#pragma once

class DynamicMesh :
	public StaticMesh
{
public:
	DynamicMesh(const D3DXVECTOR3& position, const D3DXVECTOR3& size);
	~DynamicMesh(void);

	void fromObjFile(const std::string& file, int firstIndex);
	void render();

	void setPosition(const D3DXVECTOR3& position);
	static void toLua();

	void rotate(const D3DXVECTOR3& axis);
	void move(const D3DXVECTOR3& amt);

protected:
	bool mChanged;
	D3DXVECTOR3 mRotation;
};

